package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 问卷调查的用户填报数据对象 survey_user_record
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey_user_record")
public class SurveyUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 问卷调查id
     */
    private Integer surveyId;

    /**
     * 业主微信id
     */
    private Integer wxUserId;

    private Double lng;
    private Double lat;

    private Integer townId;
    private Integer villageId;

    private Integer roomId;

    private String holderName;
    private String holderPhone;
    private String roomNo;


    /**
     * 业主微信id
     */
    private Long sysUserId;

    private String nickName;

    private String phoneNum;

    private Integer checkType;

    /**
     * 填报时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     *  详情表名
     */
    private String recordTableName;

    @TableField(exist = false)
    private String townName;

    @TableField(exist = false)
    private String villageName;
}
